import java.awt.Color;
import java.awt.Image;
import java.awt.Toolkit;

import javax.swing.JPanel;

class handPanel extends JPanel
{
	Image[] myImage;
	
    handPanel(int playern)
	{
		setBounds(100,600,600,200);
		myImage=new Image[13];
		setLayout(null);
		for(int i=1;i<13;i++)
		{
			myImage[i]= Toolkit.getDefaultToolkit().getImage("pic\\"+i+".png"); 
		}
		//goalCard gcard=new goalCard(getGoal());
		//add(gcard);
		
		if(playern==0)
		{
			setBackground(Color.pink);
		}
		else if(playern==1)
		{
			setBackground(Color.yellow);
		}
		else if(playern==2)
		{
			setBackground(Color.blue);
			
		}
		else if(playern==3)
		{
			setBackground(Color.cyan);
			
		}
		else
		{
			setBackground(Color.orange);
		}
		
		
		setVisible(true);
		
	}
    
    public goalCard getGoal(goalCard goal)
    {
    	return goal;
    }

	
}